# define  _CRT_SECURE_NO_WARNINGS 1

# include <stdio.h>
# include <stdlib.h>
# include <assert.h>

typedef struct BinaryTree
{
	struct BinaryTree* left;
	struct BinaryTree* right;
	int val;
}BTNode;

BTNode* BuyNode(int x)
{
	BTNode* newnode = (BTNode*)malloc(sizeof(BTNode));
	if (newnode == NULL)
	{
		perror("malloc failed");
		exit(-1);
	}
	newnode->right = NULL;
	newnode->left = NULL;
	newnode->val = x;

	return newnode;
}


























